import request from '@/utils/request'

// 查询电子签章列表
export function listSeal(query) {
  return request({
    url: '/document/seal/list',
    method: 'get',
    params: query
  })
}

// 查询电子签章详细
export function getSeal(applicationId) {
  return request({
    url: '/document/seal/' + applicationId,
    method: 'get'
  })
}

// 新增电子签章
export function addSeal(data) {
  return request({
    url: '/document/seal',
    method: 'post',
    data: data
  })
}

// 修改电子签章
export function updateSeal(data) {
  return request({
    url: '/document/seal',
    method: 'put',
    data: data
  })
}

// 删除电子签章
export function delSeal(applicationId) {
  return request({
    url: '/document/seal/' + applicationId,
    method: 'delete'
  })
}
